Or do you move all the validation code into the services tier, removing it from the domain class that should be the owner of that knowledge?
或者您可以将所有验证代码移入到服务层,然后从应当是该知识所有者的域类中删除它吗?
We have also described how having a "knowledge of the structure" enables SDOs to provide a single API for the complete life cycle of the data, including creation and validation.
我们还介绍了如何让SDO使用“结构知识”为数据的完整生命周期(包括创建和验证)提供单一的API。
The knowledge mode focuses on the expression, reasoning and validation of design constraints other than data of primitive types by tradition.
强调知识模型构建的重点是在表达、验证及推导设计限制条件,而不是传统意义上的数据。
应用推荐